import request from '@/utils/request'

// 查询商户的信用额度记录列表
export function listCreditLimit(query) {
  return request({
    url: '/business/admin/merchantCreditLimit/list',
    method: 'get',
    params: query
  })
}

// 查询商户的信用额度记录详细
export function getCreditLimit(id) {
  return request({
    url: '/business/admin/merchantCreditLimit/' + id,
    method: 'get'
  })
}

// 新增商户的信用额度记录
export function addCreditLimit(data) {
  return request({
    url: '/business/admin/merchantCreditLimit',
    method: 'post',
    data: data
  })
}

// 修改商户的信用额度记录
export function updateCreditLimit(data) {
  return request({
    url: '/business/admin/merchantCreditLimit',
    method: 'put',
    data: data
  })
}

// 删除商户的信用额度记录
export function delCreditLimit(id) {
  return request({
    url: '/business/admin/merchantCreditLimit/' + id,
    method: 'delete'
  })
}
